#ifndef sk_wcharfile_h__
#define sk_wcharfile_h__
#include "sk_common.h"
#include "sk_file.h"

struct SK_WCHAR_FILE;
typedef struct SK_WCHAR_FILE SK_WCHAR_FILE;

SK_WCHAR_FILE * SK_WCHAR_FILE_open(const SK_WCHAR *path,SK_FILE_OPENMODE mode);
//close o's inner file handle and free o's inner buffer and free o itself
void SK_WCHAR_FILE_close(SK_WCHAR_FILE *o);
//return read chars in the current line,-1 means reaching file end
//'\r' not included
SK_INT32 SK_WCHAR_FILE_readLine(SK_WCHAR_FILE *o,SK_WCHAR *buf,SK_INT32 len);
SK_INT32 SK_WCHAR_FILE_writeString(SK_WCHAR_FILE *o,const SK_WCHAR *buf);
#endif // sk_wcharfile_h__